<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Crazy Test</title>
<script type="text/javascript" src="../yui-base.source.js"></script>
</head>
<body>

<script type="text/javascript">
// 2008-07-18
	(function() {
		var re = /^\d+$/g;   
		alert(re.test('22')); // true or false?
		alert(re.test('33')); // true or false?
		
		var re = /^\d+$/g;   
		alert(re.test('33')); // true or false?
		alert(re.test('22')); // true or false?	
	});
	// 答案：http://www.cnblogs.com/RChen/archive/2007/01/08/regexp_test.html
</script>

<div id="test1">#test1</div>
<iframe frameborder="0" scrolling="no" src="http://service.taobao.com/support/help.htm" id="iframeTester"></iframe>
<script type="text/javascript">
	(function() {
		//window.onload = function() {
		YAHOO.util.Event.onDOMReady(function() {
			var ifm = document.getElementById('iframeTester').contentWindow.document;
			//alert(ifm.getElementsByTagName('form').length);
			alert(ifm.getElementById('Head').innerHTML);
		});
	})();
</script>

</body>
</html>